using System;

namespace Storage.Client
{
	public class Entity<T> : IEntity<T> 
	{
		public Entity(Guid id, T body)
		{
			Id = id;
			Body = body;
		}

		public Entity(T body) 
			: this (Guid.NewGuid(), body) { }

		public Guid Id { get; private set; }
		public T Body { get; set; }
	}
}